package com.ganzalang.gmall.promotion.exceptions;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @description:
 * @author: Ganzalang
 * @Date 2022/4/11 11:12
 */
@Data
@AllArgsConstructor
public class PromotionException extends RuntimeException{
    /**
     * 异常码
     */
    private Integer code;
    /**
     * 异常信息
     */
    private String errorMsg;
    /**
     * 中文异常信息
     */
    private String cnErrorMsg;

    public static PromotionException NOT_ENJOY_CONDITION = new PromotionException(1001, "NOT_ENJOY_CONDITION", "不满足促销活动的条件");
}
